package server.utils;

import java.net.InetSocketAddress;

/**
 * 字符串工具
 * @author King
 *
 */
public class StringUtils
{
	
	
	/**
	 * 解析服务器ip地址
	 * @param address
	 * @return
	 */
	public static final InetSocketAddress parseAddress(String address)
	{
		String[] temp = address.split(":");
		return new InetSocketAddress(temp[0], Integer.parseInt(temp[1]));
		
	}
	

}
